/**
 * 
 */
package com.nc.delivery_project.client.request;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.DepartmentService;
import com.nc.delivery_project.shared.proxy.DepartmentProxy;
import com.nc.delivery_project.shared.servicelocator.DepartmentServiceLocator;


/**
 * @author NataG
 *
 */
@Service(value = DepartmentService.class, locator = DepartmentServiceLocator.class)
public interface DepartmentRequest extends RequestContext{
	
	 Request<Integer> create(DepartmentProxy dept);
	 
	 Request<List<DepartmentProxy>> read();

	 Request<DepartmentProxy> read(int deptId);

	 Request<Void> update(DepartmentProxy dept);

	 Request<Void> delete(int deptId);
	 
	 Request<List<DepartmentProxy>> loadDeptByCityId(int cityId);
	 

}
